package com.sky.mapper;

import com.sky.entity.User;
import com.sky.vo.UserLoginVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    /**
     * 根据openid查询
     * @param openid
     * @return
     */
    User select(String openid);

    /**
     * 添加新用户
     * @param user
     */
    void insert(User user);

    /**
     * 获取User信息
     * @param userId
     * @return
     */
    User selectById(Long userId);
}
